@import '../../App.scss';
.dark {
    color: rgba(36, 36, 36, .8) !important;
    background: rgba(36, 36, 36, ) !important;
}

.ant-modal-confirm-content {
    color: var(--third-color) !important;
}

.ant-table,
.ant-table-cell {
    background: var(--primary-color) !important;
    color: var(--third-color) !important;
}

.ant-tooltip:hover {
    cursor: pointer;
}

.ant-pagination .ant-pagination-item a {
    color: var(--third-color);
}

.ant-pagination .ant-pagination-item-active {
    background: var(--primary-color);
}

.RightMain-aichat-content-download {
    li {
        margin: 5px 0;
        border-radius: 5px;
        padding: 5px;
    }
    li:hover {
        cursor: pointer;
        background-color: var(--third-color1);
    }
}

.RightMain-aichat-content-downloadIcon {
    width: 30px;
    height: 30px;
    transition: all .3s;
    padding-left: 5px;
}

.RightMain-aichat-content-downloadIcon:hover {
    cursor: pointer;
    color: rgba(34, 203, 250, .5);
    border: 1px solid rgba(34, 203, 250, .5);
}

.RightMain-feedback,
.RightMain-feedbacksql {
    border: 1px solid var(--third-color1);
    border-radius: 5px;
    background: var(--primary-color1);
    padding-left: 10px;
    color: var(--third-color);
    vertical-align: top;
    font-family: normal;
}

.RightMain-feedback {
    height: 100px;
    padding-top: 5px;
}

.RightMain-feedbacksql {
    height: 30px;
    margin-bottom: 10px;
}

.RightMain-feedbacksql::placeholder,
.RightMain-feedback::placeholder {
    font-weight: 400;
    color: var(--third-color2) !important;
    font-family: normal;
}

.ant-select-item-option-selected {
    background-color: var(--primary-color) !important;
}

.ant-select-item-option-selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 20px;
}

.RightMain {
    position: relative;
    width: calc(100vw - 250px);
    height: calc(100vh);
    overflow: hidden;
    background: rgba(0, 0, 0, 0);
    color: rgba(36, 36, 36, );
    transition: all .3s;
    min-width: 800px;
    z-index: 1;
    padding-top: 100px;
    /* 为 TopBar 提供空间 */
    .ant-select-selection-item {
        padding: 0 20px 0 8px !important; // 恢复标准内边距
        height: 24px !important; // 设置固定高度
        line-height: 24px !important; // 保持垂直居中
        display: flex !important;
        align-items: center;
    }
    .ant-select-selection-item::before {
        display: none;
    }
    // 在.scss文件中添加以下样式
    .ant-select:not(.ant-select-customize-input) {
        .ant-select-selector {
            height: 40px !important; // 统一选择器高度
            min-height: 40px !important;
            align-items: center !important;
            padding: 2px 11px !important;
        }
        // 多选标签对齐调整
        &.ant-select-multiple {
            .ant-select-selection-item {
                margin-top: 3px !important;
                margin-bottom: 3px !important;
                align-items: center !important;
            }
            .ant-select-selection-search {
                margin-top: 5px;
            }
        }
        // 单选模式文字垂直居中
        &.ant-select-single {
            .ant-select-selection-item,
            .ant-select-selection-placeholder {
                display: flex !important;
                align-items: center !important;
            }
        }
    }
    // 选择器容器统一高度
    .ant-select-selector {
        border-radius: 6px !important;
        transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    .ant-select-selector {
        height: 60px !important;
    }
    .RightTopModel {
        width: calc(98vw - 250px);
        // height: 40px;
        z-index: 1;
        margin-top: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--third-color2);
    }
    .modelDisabled {
        background: var(--primary1-color);
    }
    .RightMain-main {
        padding: 5px 2vw;
        width: 100%;
        height: calc(82vh - 75px);
        overflow: auto;
        background: var(--primary-color);
        .RightMain-chatli {
            width: 100%;
            display: flex;
            margin-bottom: 20px;
        }
        .RightMain-aichat {
            justify-content: start;
            .RightMain-aichat-head {
                width: 30px;
                height: 30px;
                border-radius: 40px;
                margin-right: 15px;
            }
            .RightMain-aichat-content {
                position: relative;
                padding: 20px;
                border-radius: 10px;
                font-family: sans-serif;
                max-width: 90%;
                background: var(--primary-color);
                border: 1px solid var(--third-color1);
                color: var(--third-color);
                overflow-wrap: wrap;
                word-break: break-all;
                .ace_editor {
                    border-radius: 0 0 5px 5px;
                    min-height: 50px;
                    width: auto !important;
                    border: 1px solid var(--third-color1);
                }
                .ant-table {
                    overflow: auto;
                    .ant-table-thead>tr>th {
                        max-width: 400px !important;
                    }
                }
                .RightMain-aichat-content-start {
                    margin-bottom: 20px;
                    font-weight: 400;
                }
                .RightMain-aichat-content-content {
                    line-height: 40px;
                    // background: rgba(169, 168, 168, .2);
                    margin-bottom: 20px;
                    font-weight: 400;
                    .RightMain-aichat-content-typeCopy {
                        background: rgba(61, 68, 81, .5);
                        width: 100%;
                        margin-bottom: 0 !important;
                        padding-right: 20px;
                        border-radius: 10px 10px 0 0;
                        padding-left: 20px;
                        align-items: center;
                        height: 35px;
                        .copyBtn {
                            margin-top: 3px;
                            background: rgba(0, 0, 0, 0);
                            color: var(--third-color);
                        }
                    }
                    .RightMain-aichat-content-tool {
                        display: flex;
                        position: absolute;
                        width: 18px;
                        height: 150px;
                        right: -26px;
                        color: var(--third-color1);
                        top: -2px;
                        flex-direction: column;
                        justify-content: space-around;
                        .feedbackSelete {
                            pointer-events: none;
                            color: var(--secondary-color);
                        }
                        svg {
                            margin: -10px 0px !important;
                            transition: all .3s;
                        }
                        svg:hover {
                            color: rgba(34, 203, 250, .5);
                            cursor: pointer;
                        }
                    }
                }
            }
        }
        .RightMain-peoplechat {
            justify-content: end;
            .RightMain-peoplechat-head {
                margin-left: 15px;
                width: 30px;
                height: 30px;
                border-radius: 15px;
                font-size: 26px;
            }
            .RightMain-peoplechat-content {
                padding: 15px;
                border-radius: 10px;
                font-family: sans-serif;
                max-width: 40%;
                background: rgba(134, 203, 250, .2);
                word-break: break-all;
                color: var(--third-color);
            }
        }
    }
    .RightMain-main::-webkit-scrollbar {
        width: 0;
    }
    /* 底部输入区域 */
    .RightMain-bottom {
        position: absolute;
        display: flex;
        align-items: center;
        background: var(--primary-color);
        bottom: 0;
        width: 100%;
        height: 75px;
        z-index: 5;
        padding: 0 20px;
        gap: 12px;
        .input {
            position: relative;
            flex-grow: 1;
            input {
                width: 100%;
                height: 60px;
                border-radius: 8px;
                padding: 0 60px 0 20px;
                font-size: 16px;
                border: 1px solid rgba(0, 0, 0, 0.1);
                box-shadow: 0px 0px 10px 10px rgba(255, 255, 255, 0.1);
                background: var(--primary-color);
                color: var(--third-color);
                transition: all 0.3s;
            }
            .anticon-send {
                position: absolute;
                right: 20px;
                top: 50%;
                transform: translateY(-50%);
                padding: 8px;
                background: rgba(34, 203, 250, 0.1);
                border-radius: 6px;
                transition: all 0.3s;
                &:hover {
                    color: rgb(34, 203, 250);
                    background: rgba(34, 203, 250, 0.2);
                    transform: translateY(-50%) scale(1.05);
                }
            }
        }
        /* 操作按钮样式 */
        .RightMain-bottom-delete,
        .RightMain-bottom-downlaod {
            font-size: 20px;
            color: var(--third-color);
            transition: all 0.3s;
            &:hover {
                color: rgb(34, 203, 250);
            }
        }
    }
}


/* 响应式调整 */

@media (max-width: 1200px) {
    .RightMain {
        min-width: auto;
        width: 100vw;
        .RightMain-bottom {
            flex-wrap: wrap;
            height: auto;
            padding: 15px;
            .input {
                order: 1;
                width: 100%;
                margin-top: 15px;
            }
        }
    }
}